View Issue Details

IDProjectCategoryView StatusLast Update
0001197K18X001.00 SKB SWANSWpublic2021-04-29 09:22
Reporter(SW) River WongAssigned To(ALTech) Wooshin Kang Due Date2021-04-16 10:25
PriorityhighSeveritys2-severeReproducibilityalways
Status closedResolutionfixed 
Summary0001197: [SWAN][New AMP] A113x AMP output I2S signal is not smooth
DescriptionHi Wooshin,

I found there is an issue on 0408 A113x AMP image that the I2S output from A113x is not smooth.
You can refer to the attached picture A113X_0408_image_I2S_output_discontinue.jpg.
The channel 0/1/2 is the I2S output of A113x.
The channel 3/4/5 is the I2S output of VS550.
As you can see from the picture, the channel2 (I2S data) is not continued and has significant gap.
I also found the console output of A113x has some error about overrun and underrun. Please check and fix it.


I play Youtube "250hz tone" as audio source.
and run /usr/bin/speaker_process on A113X console.

=============================================================================
[ 112.873817@1] asoc-aml-card auge_sound: tdm capture stop
Overrun occurred: -32
ALSA lib pcm.c:8432:(snd_pcm[ 112.883611@3] asoc-aml-card auge_sound: tdm prepare capture
_recover) overrun occurred
[ 112.891519@1] aml_dai_tdm_prepare Expected toddr src:TDMIN_B
[ 112.901607@3] asoc-aml-card auge_sound: tdm playback enable
[ 112.904985@3] asoc-aml-card auge_sound: tdm capture enable
[ 113.073776@3] asoc-aml-card auge_sound: tdm playback stop
[ 113.081520@1] aml_tdm_ddr_isr(), reset tdmin, jiffies:4294920508
[ 113.082166@1] asoc-aml-card auge_sound: tdm capture stop
Overrun occurred: -32
ALSA lib [ 113.090293@3] asoc-aml-card auge_sound: tdm prepare capture
[ 113.096001@3] aml_dai_tdm_prepare Expected toddr src:TDMIN_B
pcm.c:8432:(snd_pcm_recover) overrun occurred
Underrun occurred from write: -32
ALSA lib pcm.c:8432:(snd_pcm_recover) underrun occurred
[ 113.125110@3] asoc-aml-card auge_sound: tdm capture enable
[ 113.296667@1] aml_tdm_ddr_isr(), reset tdmin, jiffies:4294920562
[ 113.297341@1] asoc-aml-card auge_sound: tdm capture stop
Overrun occurred: -32
ALSA lib pcm.c:8432:(snd_pcm_recover[ 113.307832@1] asoc-aml-card auge_sound: tdm prepare capture
[ 113.315061@1] aml_dai_tdm_prepare Expected toddr src:TDMIN_B
) overrun occurred
[ 113.324754@3] asoc-aml-card auge_sound: tdm playback enable
[ 113.326337@3] asoc-aml-card auge_sound: tdm capture enable
TagsNo tags attached.
Attach Tags

Users monitoring this issue

User List There are no users monitoring this issue.

Activities

(SW) River Wong

2021-04-13 10:32

developer  

(ALTech) Wooshin Kang

2021-04-13 10:48

developer   ~0006678

Last edited: 2021-04-13 10:50

I will check it and update later, because there are many items to be checked.
Thanks.

(SW) Jacky Chiang

2021-04-15 16:42

manager   ~0006736

Hi Wooshin,

     Do you have any updates on this issue ? River already implemented AMP i2c driver on VS-550 and check it is working well now.

(ALTech) Wooshin Kang

2021-04-15 17:50

developer   ~0006737

Hi Jacky,

I am trying to check other module ( i2c slave and ethernet driver ) so it will be checked at next week.
If i have any question, i will inform you.

Thanks.

(SW) Jacky Chiang

2021-04-15 18:06

manager   ~0006739

Hi Wooshin,

     Thank you for update. How about USB interface ?
However, as I know, A113x AMP board don't have ethernet interface, why do you check it ?

(ALTech) Lonnie Kim

2021-04-21 16:03

developer   ~0006807

Hi, Jacky and River

We checked I2S data between VS-550 output and A113X output.
We found data was missed from VS-550 output.
Please refer to attached Waveform.
CH1(yellow): A113X output
CH2(green): VS-550 output

Best regards

Lonnie Kim
scope_12.png (49,865 bytes)   
scope_12.png (49,865 bytes)   
scope_13.png (49,617 bytes)   
scope_13.png (49,617 bytes)   
scope_14.png (47,955 bytes)   
scope_14.png (47,955 bytes)   

(SW) River Wong

2021-04-21 17:36

developer   ~0006812

Hi Lonnie,

Could you give us the A113x image that you already modified for I2S?
Then we can check the issue that VS550 has I2S audio drop issue.

(SW) River Wong

2021-04-21 20:41

developer   ~0006814

Hi Lonnie,

Could you give us the A113x image that you already modified for I2S?
Then we can check the issue that VS550 has I2S audio drop issue.

(SW) River Wong

2021-04-21 20:46

developer   ~0006815

Hi Lonnie,

I use the latest 0421 image to test and still found a lot of I2S data gaps from A113X output comparing with VS550 I2S output.
In the attached picture, Channel 5 is the A113X I2S data, Channel2 is the VS550 I2S data. You can see a lot of gaps in Channel5.
Do you use a fixed frequency tone to test? If not, please use youtube to play a 250 hz tone to teat again.
A113_I2S_gap_with_0421_images.jpg (140,794 bytes)   
A113_I2S_gap_with_0421_images.jpg (140,794 bytes)   

(SW) River Wong

2021-04-23 18:30

developer   ~0006846

Hi Wooshin,

In today's meeting, ALT requests a SWAN test image for testing NUGU. You can use the SWAN image at
http://altserver01.iptime.org/release_by_fxn/swan_test_image/New_AMP/0423_Nugu_test/
It is a v524 image, please remember to change the server list setting.


Also, this image also includes the Wellang AMP drivers. If you want to use New AMP driver, please do following:
1.Main board needs to remove R2981 resister to avoid short V3.3 to GND.
2.You need to unplug LED sub-board to avoid I2S address conflict (LED has same I2C address as one Wellang AMP IC).

(SW) River Wong

2021-04-29 09:22

developer   ~0006922

New AMP board I2S gap issue is caused by bad I2S signal quality. The bad quality of I2S signal will cause A113X having some actions to reset capture and restart capture I2S.
Our HW already add a hardware solution by buffer IC in DVT3 design.
When we tested the buffer IC in DVT2, we can not see the I2S audio gap.
So, we think this issue can be closed.

Issue History

Date Modified Username Field Change
2021-04-13 10:32 (SW) River Wong New Issue
2021-04-13 10:32 (SW) River Wong Status new => assigned
2021-04-13 10:32 (SW) River Wong Assigned To => (ALTech) Wooshin Kang
2021-04-13 10:32 (SW) River Wong File Added: A113X_0408_image_I2S_output_discontinue.jpg
2021-04-13 10:36 (SW) River Wong Description Updated
2021-04-13 10:48 (ALTech) Wooshin Kang Note Added: 0006678
2021-04-13 10:50 (ALTech) Wooshin Kang Note Edited: 0006678
2021-04-15 16:42 (SW) Jacky Chiang Note Added: 0006736
2021-04-15 17:50 (ALTech) Wooshin Kang Note Added: 0006737
2021-04-15 18:06 (SW) Jacky Chiang Note Added: 0006739
2021-04-21 16:03 (ALTech) Lonnie Kim File Added: scope_12.png
2021-04-21 16:03 (ALTech) Lonnie Kim File Added: scope_13.png
2021-04-21 16:03 (ALTech) Lonnie Kim File Added: scope_14.png
2021-04-21 16:03 (ALTech) Lonnie Kim Note Added: 0006807
2021-04-21 17:36 (SW) River Wong Note Added: 0006812
2021-04-21 20:41 (SW) River Wong Note Added: 0006814
2021-04-21 20:46 (SW) River Wong File Added: A113_I2S_gap_with_0421_images.jpg
2021-04-21 20:46 (SW) River Wong Note Added: 0006815
2021-04-23 18:30 (SW) River Wong Note Added: 0006846
2021-04-29 09:22 (SW) River Wong Status assigned => closed
2021-04-29 09:22 (SW) River Wong Resolution open => fixed
2021-04-29 09:22 (SW) River Wong Note Added: 0006922